import { newEnum } from '@Components/assets/js/common'

export const SiteUrl = '*'

export const ImgUrl = `/Att`

export const CookieKey = '312312312'

export const API = API_LIST

export const CNSOCKETURL = ''

// 提醒图标状态
export const RecordTipsMap = {}

export const SendStateMap = {}

export const InStockTypeMap = {}

export const RecordTipsList = (() => {
  const data = []
  for (const key in RecordTipsMap) {
    data.push({
      value: key,
      label: RecordTipsMap[key].title
    })
  }
  return data
})()

export const FlagColor = [
  '#808080',
  '#F56C6C',
  '#E6A23C',
  '#67C23A',
  '#409EFF',
  '#E000FC',
  '#09D3F0',
  '#FA9433'
]

export const FLAG_COLOR = [
  {
    color: '#808080',
    text: '灰'
  },
  {
    color: '#F56C6C',
    text: '红'
  },
  {
    color: '#E6A23C',
    text: '黄'
  },
  {
    color: '#67C23A',
    text: '绿'
  },
  {
    color: '#409EFF',
    text: '蓝'
  },
  {
    color: '#E000FC',
    text: '紫'
  },
  {
    color: '#09D3F0',
    text: '青'
  },
  {
    color: '#FA9433',
    text: '橙'
  }
]

//订单来源
export const TRADE_FROM_TYPE = newEnum('TY', 'TB', 'JD', 'PDD', 'DY')

//日志内容分隔符
export const SEPARATOR = '\n'
